//
//  Expanded.swift
//  AICleaner
//
//  Created by firefly on 2025/1/26.
//

import SwiftUI

struct Expanded<Content: View>: View {
    var flex: CGFloat = 0
    var alignment: Alignment = .center
    var content: () -> Content
    
    var body: some View {
        content()
            .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: alignment)
            .layoutPriority(flex)
    }
}
